package com.bdqn.petmalldemo.service;

import com.bdqn.petmalldemo.bo.ShippingAddBo;
import com.bdqn.petmalldemo.entity.Shipping;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lenovo
 * @since 2020-02-10
 */
public interface ShippingService extends IService<Shipping> {
    /**
     *根据用户Id查询收货地址
     * @param userId
     * @return
     */
    List<Shipping> getShippingByUserId(String userId);

    /**
     * 新增收货信息
     * @param shippingAddBo
     */
    void addShipping(ShippingAddBo shippingAddBo);

    /**
     * 删除收货地址
     * @param shippingId
     */
    void deleteShipping(String shippingId);
}
